<template>
  <div id="app">
    <form action="http://www.itcast.cn">
      <input type="text" />

      <button @click.prevent.stop="fn">提交</button>
    </form>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    fn(e) {
      e.preventDefault()
    },
  },
}
</script>

<style scoped></style>
